<?php

header('Content-Type: application/xml; charset=utf-8' );
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Thu, 27 Mar 1975 07:38:00 GMT');
header('Last-Modified: ' . date('r'));
header('Pragma: no-cache');

require('includes/application_top.php');

echo '<?xml version="1.0" encoding="utf-8"?><bcaster>';
$product_query = tep_db_query("select * from banner order by place,bid desc");
while($row = tep_db_fetch_array($product_query)){
	echo  '<item item_url="images/pm/'.$row['img'].'"';
	if($row['url']) 
		echo ' link="'.$row['url'].'" ';
	echo ' />';
}
echo '</bcaster>';

?>